﻿
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PanhuaWin
{
    public partial class Dic_Depart 
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///工厂
        /// </summary>
        [Display(Name = "工厂")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid WorkShopGuid { get; set; }

        /// <summary>
        ///部门编号
        /// </summary>
        [Display(Name = "部门编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string DepartCode { get; set; }

        /// <summary>
        ///部门名称
        /// </summary>
        [Display(Name = "部门名称")]
        [MaxLength(10)]
        [Column(TypeName = "nchar(10)")]
        [Editable(true)]
        public string DepartName { get; set; }

        /// <summary>
        ///上级部门
        /// </summary>
        [Display(Name = "上级部门")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        public Guid? ParentGuid { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditDate")]
        [Column(TypeName = "datetime")]
        public DateTime? AuditDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditStatus")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int AuditStatus { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditId")]
        [Column(TypeName = "int")]
        public int? AuditId { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Auditor")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string Auditor { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Remark")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        public string Remark { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateID")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Creator")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Creator { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateDate")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyID")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Modifier")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Modifier { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyDate")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///NC部门编号
        /// </summary>
        [Display(Name = "NC部门编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string NcCode { get; set; }


    }
}